const Layout = () => import('../views/layout/Layout.vue')

// 定义configmap相关的路由映射
export const configmapRoutes = {
    path: "/configmap",
    component: Layout,
    redirect: "/configmap/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../views/configmap/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../views/configmap/Create.vue')
        },
        {
            path: 'edit',
            component: ()=> import('../views/configmap/Edit.vue')
        }
    ]
}
// 定义secret路由映射
export const secretRoutes = {
    path: "/secret",
    component: Layout,
    redirect: "/secret/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../views/secret/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../views/secret/Create.vue')
        },
        {
            path: 'edit',
            component: ()=> import('../views/secret/Edit.vue')
        }
    ]
}
